package net.getbang.admin.mapper;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;

import net.getbang.admin.entity.SysUser;

public interface SysUserMapper extends BaseMapper<SysUser>{

	/**
	 * 查询用户的所有权限
	 * @param userId  用户ID
	 */
	List<String> queryAllPerms(Long userId);
	/**
	 * 查询用户的所有菜单ID
	 */
	List<Long> queryAllMenuId(Long userId);
	
	
	List<SysUser> queryList(Pagination pagination, SysUser sysUser);
	
	/**
	 * 修改密码
	 */
	int updatePassword(Map<String, Object> map);
	
	void save(SysUser sysUser);
}
